﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="~/Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:LoginView ID="loginview1" runat="server">
            <AnonymousTemplate>
                <a href="Login.aspx">Login</a>
            </AnonymousTemplate>
            <LoggedInTemplate>
                Hi, <%=Page.User.Identity.Name %>
                <a href="Logout.aspx">Logout</a>
            </LoggedInTemplate>
        </asp:LoginView>
    </div>
    
    <p>
        This application is a simple usage demo to show how EnCor can be integrated with Classic Asp.net.
    </p>
    <p>
        Use EnCor.Aspnet.Security.AspnetAuthenticationAdapter to retrive Identity from FormsAuthentications' cookie.
    </p>
    <P>
        Use username: Admin and password: admin to login.
    </P>
    
    <div>
        <%= EnCor.Aspnet.AspnetRuntime.GetService<HelloEnCor.Interface.IHelloService>().SayHello() %>
    </div>
    </form>
</body>
</html>
